LEADTOOLS Medical (Leadtools.MedicalViewer assembly)

Reposition Method

Show in webframe





Index of the cell to be repositioned.
The zero-based index that represents the target position for the cell.
true to swap the cells with the indexes cellIndex, targetCellIndex; false to insert the cell with index of cellIndex into targetCellIndex.
Repositions the cell by removing it and inserting it into another position in the MedicalViewer control.
Syntax
public void Reposition( 
   int cellIndex,
   int targetCellIndex,
   bool swap
)
'Declaration
 
Public Sub Reposition( _
   ByVal cellIndex As Integer, _
   ByVal targetCellIndex As Integer, _
   ByVal swap As Boolean _
) 
'Usage
 
Dim instance As MedicalViewerCellCollection(Of MedicalViewerBaseCell)
Dim cellIndex As Integer
Dim targetCellIndex As Integer
Dim swap As Boolean
 
instance.Reposition(cellIndex, targetCellIndex, swap)

            

            
public:
void Reposition( 
   int cellIndex,
   int targetCellIndex,
   bool swap
) 

Parameters

cellIndex
Index of the cell to be repositioned.
targetCellIndex
The zero-based index that represents the target position for the cell.
swap
true to swap the cells with the indexes cellIndex, targetCellIndex; false to insert the cell with index of cellIndex into targetCellIndex.
Example
      Imports Leadtools
      Imports Leadtools.Codecs
      Imports Leadtools.MedicalViewer
      Imports Leadtools.ImageProcessing.Core

      Public Sub MedicalViewerCellCollectionRepositionCellsExample()
         Dim myForm As MedicalViewerForm = GetMedicalControl()
         Dim medicalViewer As MedicalViewer = myForm.Viewer
         medicalViewer.Cells.Reposition(0, 1, True)

         myForm.ShowDialog()
      End Sub      using Leadtools;
      using Leadtools.Codecs;
      using Leadtools.MedicalViewer;
      using Leadtools.ImageProcessing.Core;

      public void MedicalViewerCellCollectionRepositionCellsExample()
      {
         MedicalViewerForm myForm = GetMedicalControl();
         MedicalViewer medicalViewer = myForm.Viewer;
         medicalViewer.Cells.Reposition(0, 1, true);

         myForm.ShowDialog();
      }
      Imports Leadtools
      Imports Leadtools.Codecs
      Imports Leadtools.MedicalViewer
      Imports Leadtools.ImageProcessing.Core

      Public Sub MedicalViewerCellCollectionRepositionCellsExample()
         Dim myForm As MedicalViewerForm = GetMedicalControl()
         Dim medicalViewer As MedicalViewer = myForm.Viewer
         medicalViewer.Cells.Reposition(0, 1, True)

         myForm.ShowDialog()
      End Sub      using Leadtools;
      using Leadtools.Codecs;
      using Leadtools.MedicalViewer;
      using Leadtools.ImageProcessing.Core;

      public void MedicalViewerCellCollectionRepositionCellsExample()
      {
         MedicalViewerForm myForm = GetMedicalControl();
         MedicalViewer medicalViewer = myForm.Viewer;
         medicalViewer.Cells.Reposition(0, 1, true);

         myForm.ShowDialog();
      }
      using Leadtools;
      using Leadtools.Codecs;
      using Leadtools.MedicalViewer;
      using Leadtools.ImageProcessing.Core;

      public void MedicalViewerCellCollectionRepositionCellsExample()
      {
         MedicalViewerForm myForm = GetMedicalControl();
         MedicalViewer medicalViewer = myForm.Viewer;
         medicalViewer.Cells.Reposition(0, 1, true);

         myForm.ShowDialog();
      }
Requirements

Target Platforms

See Also

Reference

MedicalViewerCellCollection<MedicalViewerBaseCell> Class
MedicalViewerCellCollection<MedicalViewerBaseCell> Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.MedicalViewer requires a Medical Imaging license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features